﻿<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl"
>
  <xsl:output version="4.0" method="html" indent="no"  omit-xml-declaration="yes" encoding="UTF-8" doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN" doctype-system="http://www.w3.org/TR/html4/loose.dtd"/>
  <xsl:template match="//CareEvents">
    <div id="careevents">
      <div>
          <div>
            <ul>
              <xsl:for-each select="CareEvent">
                <xsl:variable name="CareEventID" select="CareEventID"/>
                <li class="careevent selectable" careeventid='{$CareEventID}'>
                  <h4>
                    <xsl:value-of select="CareEventName"/>
                  </h4>
                  <xsl:value-of select="CareEventDate"/>
                  <br/>
                  <xsl:value-of select="CareEventLocation"/>
                </li>
              </xsl:for-each>
            </ul>
          </div>
        </div>
    </div>
  </xsl:template>
</xsl:stylesheet>
